﻿@model laboration2.Models.Contact

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>

    <div class="clearfix">
        @Html.LabelFor(model => model.FirstName)
        <div class="input">
            @Html.TextBoxFor(model => model.FirstName, new { maxLength="5", size="10" })
            <span class="help-block">Max 50 tecken</span>
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>
    </div>

    <div class="clearfix">
        @Html.LabelFor(model => model.LastName)
        <div class="input">
            @Html.EditorFor(model => model.LastName)
            <span class="help-block">Max 50 tecken</span>
            @Html.ValidationMessageFor(model => model.LastName)
        </div>
    </div>

    <div class="clearfix">
        @Html.LabelFor(model => model.EmailAddress)
        <div class="input">
            @Html.EditorFor(model => model.EmailAddress)
            <span class="help-block">Max 50 tecken</span>
            @Html.ValidationMessageFor(model => model.EmailAddress)
        </div>
    </div>
    <div class="actions">
            <input type="submit" value="Spara" class="btn primary"/>&nbsp; @Html.ActionLink("Ångra", "Index", null, new { @class = "btn danger" })
          </div>

    </fieldset>
}